package com.aaa.service;

import com.aaa.entity.Roomtype;
import com.github.pagehelper.PageInfo;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface RoomtypeService {
    List<Map<String, Object>> findtype();

    PageInfo<Roomtype> roomfind(String typename,Integer pageNum, Integer pageSize);

    Integer add(Roomtype roomType);

    /**
     * 查询房间类型
     * @param typename 值
     * @return 结果
     */
    List<Map<String,Object>> query(Integer id,String typename);

    Roomtype toedit(Integer id);

    Integer update(Roomtype roomType);

    Object choicedate(String choiceEnddate, Integer rid, Integer odid) throws ParseException;
}
